package newCar;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: sfx
 * Date: 2022-11-04
 * Time: 21:06
 */
public class Car {

    FrameWork frameWork;
    //启动车的方法

    //以前是自己造车身,现在我不造了,让别人造
    public Car(FrameWork frameWork){
        //frameWork = new FrameWork();
        this.frameWork = frameWork;
    }

    public void init(){
        System.out.println("Car init!!!");
        //车的启动要依赖于底盘
        frameWork.init();
    }

}
